﻿using YNTK.Common.Const;
using SqlSugar;
using System;

namespace YNTK.SubDev.Entitys
{
    /// <summary>
    /// 项目成本
    /// </summary>
    [SugarTable("zy_oa_proCost")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class ZyOaProCostEntity
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
        public string Id { get; set; }
        
        /// <summary>
        /// 项目名称
        /// </summary>
        [SugarColumn(ColumnName = "Pro_Name")]        
        public string ProName { get; set; }
        
        /// <summary>
        /// 成本编号
        /// </summary>
        [SugarColumn(ColumnName = "CostID")]        
        public string CostId { get; set; }
        
        /// <summary>
        /// 成本名称
        /// </summary>
        [SugarColumn(ColumnName = "Cost_Name")]        
        public string CostName { get; set; }
        
        /// <summary>
        /// 成本类型
        /// </summary>
        [SugarColumn(ColumnName = "Cost_Type")]        
        public string CostType { get; set; }
        
        /// <summary>
        /// 发生时间
        /// </summary>
        [SugarColumn(ColumnName = "HappendTime")]        
        public DateTime? HappendTime { get; set; }
        
        /// <summary>
        /// 计划费用(元)
        /// </summary>
        [SugarColumn(ColumnName = "PlanAmount")]        
        public decimal PlanAmount { get; set; }
        
        /// <summary>
        /// 实际费用(元)
        /// </summary>
        [SugarColumn(ColumnName = "Amount")]        
        public decimal Amount { get; set; }
        
        /// <summary>
        /// 成本状态
        /// </summary>
        [SugarColumn(ColumnName = "State")]        
        public int? State { get; set; }
        
        /// <summary>
        /// 详细说明
        /// </summary>
        [SugarColumn(ColumnName = "Remark")]        
        public string Remark { get; set; }
        
        /// <summary>
        /// 附件
        /// </summary>
        [SugarColumn(ColumnName = "Appendix")]        
        public string Appendix { get; set; }
        
        /// <summary>
        /// 投入人天
        /// </summary>
        [SugarColumn(ColumnName = "Spare1")]        
        public string Spare1 { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare2")]        
        public string Spare2 { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare3")]        
        public string Spare3 { get; set; }
        
        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "Creater")]        
        public string Creater { get; set; }
        
        /// <summary>
        /// 创建日期
        /// </summary>
        [SugarColumn(ColumnName = "CreateDate")]        
        public object CreateDate { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateTime")]        
        public DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 最后修改人
        /// </summary>
        [SugarColumn(ColumnName = "Modifyer")]        
        public string Modifyer { get; set; }
        
        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "ModifyTime")]        
        public DateTime? ModifyTime { get; set; }
        
        /// <summary>
        /// 甲方负责人
        /// </summary>
        [SugarColumn(ColumnName = "LastHander")]        
        public string LastHander { get; set; }
        
        /// <summary>
        /// 成本责任人
        /// </summary>
        [SugarColumn(ColumnName = "DesPerson")]        
        public string DesPerson { get; set; }
        
        /// <summary>
        /// 相关成员
        /// </summary>
        [SugarColumn(ColumnName = "DesPersonName")]        
        public string DesPersonName { get; set; }
        
        /// <summary>
        /// 最后状态
        /// </summary>
        [SugarColumn(ColumnName = "LastTrackState")]        
        public int? LastTrackState { get; set; }
        
    }
}
